// project created on 08/06/2007 at 09:32 p
using System;
using Gtk;
using GtkSharp;
using Gnome;
using DiaCanvas;

namespace MyCanvas
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Application.Init ();
			MainWindow win = new MainWindow ();
			
			DiaCanvas.Canvas canvas1 = new DiaCanvas.Canvas();
			
			CanvasGroup root = canvas1.Root();
			
			//root.CanvasEvent +=  new Gnome.CanvasEventHandler();
			
            canvas1.Show();
            Figura f = new Rectangulo(new Gdk.Point(3,4),80,50,canvas1);
            f.Debug = true;
            canvas1.AddFigure(f);
            f = new Circulo(new Gdk.Point(3,4),20,canvas1);
            canvas1.AddFigure(f);
            f = new Rombo(new Gdk.Point(3,4),40,50,canvas1);
            canvas1.AddFigure(f);
            f = new Romboide(new Gdk.Point(3,4),40,80,canvas1);
            canvas1.AddFigure(f);
  			win.Add(canvas1);
			win.Show ();
			Application.Run ();
		}
	}
}